import mongoose from "mongoose";

const schema =new mongoose.Schema({
    title:{
        type:String,
        required:true
    },
    typeId:{
        type:String,
        required:true
    },
    content:String,
    userId:{
        type:String,
        required:true
    },
    pv:{
        type:Number,
        default:0,
    },
},{
    timeseries:true
})
export const articleModel =mongoose.model("articles",schema)
